import request from '@/utils/request'

export default{

    //学生登录
    submitLogin(userInfo){
        return request({
            url: '/student/login',
            method: 'post',
            data: userInfo
        })
    },

    //老师登录
    submitTeaLogin(teaInfo){
        return request({
            url: '/teacher/login',
            method: 'post',
            data: teaInfo
        })
    },

    //根据token获取会老师信息
    getTeaInfo(){
        return request({
            url: '/teacher/teacherInfo',
            method: 'get',
        })
    },

    //根据token获取学生信息
    getMemberInfo(){
        return request({
            url: '/student/studentInfo',
            method: 'get',
        })
    },

    changeMemberInfo(userInfo){
        return request({
            url: '/student/changeStudentInfo',
            method: 'post',
            data: userInfo
        })
    },

    changeStuPass(passInfo){
        return request({
            url: '/student/changePassword',
            method: 'post',
            data: passInfo
        })
    }


}